import cgi
import time
from google.appengine.api import users
from google.appengine.ext import webapp

class DateTimeService(webapp.RequestHandler):
	def get(self):
		if self.request.get('action')=='getheadlinedate':
			self.response.out.write(self.getHeadlineDate())
		else:
			self.response.out.write('unknown request')
	
	def getHeadlineDate(self):
		return time.strftime('%A, %B %e, %Y', time.localtime()).replace('  ',' ')
